package com.come4loves.game.server.session;

import io.netty.util.AttributeKey;

import com.come4loves.game.server.firewall.FloodRecord;

/**
 * Session自定义属性
 * @author ludd
 *
 */
public class SessionKey {

	/**
	 * 角色id
	 */
	public static final AttributeKey<Long> ACTOR_ID = AttributeKey.valueOf("actor_id");
	
	/**
	 * 远程ip
	 */
	public static final AttributeKey<String> REMOTE_HOST = AttributeKey.valueOf("remote_host");
	
	/**
	 * 用户登陆的平台类型
	 */
	public static final AttributeKey<String> PLATFORM_TYPE = AttributeKey.valueOf("platform_type");
	
	/**
	 * 用户登陆的平台uid
	 */
	public static final AttributeKey<String> PLATFORM_UID = AttributeKey.valueOf("platform_uid");
	
	/**
	 * 角色登陆的serverid
	 */
	public static final AttributeKey<Integer> SERVER_ID = AttributeKey.valueOf("server_id");

	public static final AttributeKey<FloodRecord> FLOOD_RECORD = AttributeKey.valueOf("flood_record");
}
